<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>    
<%@ include file="/include/jsp/baseContent.jsp"%>
<link type="text/css" href="css/calendar/ui.all.css" rel="stylesheet" />
<link type="text/css" href="css/calendar/demos.css" rel="stylesheet" />    
<%
//type 이 failed 면 Goal Potential 이 없거나 정상 조회를 하지 못한 경우이다.
String type = request.getParameter("type");
%>    
<script type="text/javascript">
function getNowPotential(){
	
	location.href = "/edu/insertNowPotential.action";
	
}
</script>
<div style="margin:auto; text-align:center;">
	<!--// 컨텐츠 영역 -->
	<div id="mainContainer">
	<!-- //##### Contents START ############################# -->		
		<div id="subtitle01" style="text-align:left; padding-left:5px;">
			<h5>Now Potential</h5>
			<table id="now_potential" border="1" style="width:90%;">
<%if("failed".equals(type)){ %>
				<tr height="60" align="center">
					<td onclick="getNowPotential();">Sorry. Can't get your now potential information.</td>		
				</tr>
<%}else{ %>				
			<colgroup>
				<col width="10%">
				<col width="15%">
				<col width="15%">
				<col width="15%">
				<col width="15%">
				<col width="15%">
				<col width="15%">
			</colgroup>
				<tr height="30" align="center">
					<td>Field</td>
					<td style="background:#fad296;">Japanese</td>
					<td style="background:#fad296;">English</td>
					<td style="background:#fad296;"><s:property value="resultDTO2.major_name_1"/></td>
					<td style="background:#fad296;"><s:property value="resultDTO2.major_name_2"/></td>
					<td style="background:#fad296;"><s:property value="resultDTO2.major_name_3"/></td>
					<td style="background:#fad296;"><s:property value="resultDTO2.major_name_4"/></td>												
				</tr>
				<tr height="30" align="center">
					<td>Now</td>		
					<td><s:property value="resultDTO2.japanese_point"/></td>	
					<td><s:property value="resultDTO2.english_point"/></td>
					<td><s:property value="resultDTO2.major_point_1"/></td>
					<td><s:property value="resultDTO2.major_point_2"/></td>
					<td><s:property value="resultDTO2.major_point_3"/></td>
					<td><s:property value="resultDTO2.major_point_4"/></td>
				</tr>
<%} %>						
			</table>
		</div>
	<!-- //##### Contents END ############################# -->
	</div>
	<!--// 컨텐츠 영역 -->
</div>